﻿package  {
	import com.kerry.util.ArrayUtil;
	import flash.display.Sprite;
	/**
	 * com.kerry.util.ArrayUtil 类的演示文件
	 * @author PhoenixKerry（http://blog.sina.com.cn/yyy98）
	 */
	public class ArrayUtilDemo extends Sprite {
		
		public function ArrayUtilDemo() {
			var ary1:Array = [1, 2, 3];
			trace(ArrayUtil.arrayContainsValue(ary1, 4)); //false
			
			var ary2:Array = ArrayUtil.copyArray(ary1);
			trace(ArrayUtil.arraysAreEqual(ary1, ary2));//true
			
			ArrayUtil.removeValueFromArray(ary1, 2);
			trace(ary1); //1,3
			
			trace(ArrayUtil.arraysAreEqual(ary1, ary2));//false
			
			trace(ArrayUtil.shuffle([1, 2, 3, 4, 5, 6, 7, 8, 9])); //5,2,3,4,1,6,8,9,7
		}
		
	}

}